package net.shouyong.topbilliards;

import android.app.Application;
import android.os.Handler;
import android.os.Message;

import com.avos.avoscloud.AVOSCloud;
import com.avos.avoscloud.AVObject;
import com.tencent.bugly.Bugly;

import net.shouyong.topbilliards.bean.BilliardRecord;

/**
 * Created by shouyong on 2016/10/24.
 */

public final class MainApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        Bugly.init(getApplicationContext(), "6d5e396f1b", false);

        AVObject.registerSubclass(BilliardRecord.class);
        //如果使用美国节点，请加上这行代码 AVOSCloud.useAVCloudUS();
        AVOSCloud.initialize(this, "f01pYR2BAEVr580seOge3oKd-gzGzoHsz", "O8cErVrc0lIj1wCBL0ncRJm0");

    }
}
